package com.bdqn.ch03.sz.dao.impl;

import com.bdqn.ch03.sz.dao.NumBerDao;

public class NumBerDivideDaoImpl implements NumBerDao {

    @Override
    public double algorithm(double a, double b) {
        if (b==0){
              throw new RuntimeException("除数不能为0");
        }
        return a/b;
    }
}
